package com.xjd.edu.api.client.user;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.*;

@ResponseBody
@FeignClient(name = "xjd-edu-learning-user",contextId = "userServiceClient", path = "/com.xjd.edu.api.client.user.UserServiceClient")
//@FeignClient(name = "xjd-edu-learning-user",contextId = "userServiceClient")
public interface UserClient {

    @PostMapping("/users/money/deduct")
    void deductMoney(@RequestParam("pw") String pw, @RequestParam("amount") Integer amount);


}
